package com.eascs.banknet.constant;

import com.eascs.common.util.StringUtil;

public class FileTypeConstants {
	public static final String DALIST_TYPE_IDC = "IDC"; // 身份证附件

	public static final String DALIST_TYPE_IDRC = "IDRC"; // 借款人手持授权书及身份证照片

	public static final String DALIST_TYPE_CRD = "CRD"; // 征信业务授权书

	public static final String DALIST_TYPE_MATE_IDC = "MATE_IDC"; // 配偶身份证附件

	public static final String DALIST_TYPE_MATE_IDRC = "MATE_IDRC"; // 配偶借款人手持授权书及身份证照片

	public static final String DALIST_TYPE_MATE_CRD = "MATE_CRD"; // 配偶征信业务授权书

	public static final String DALIST_TYPE_OTH = "OTH"; // 其他附件

	public static final String DALIST_TYPE_LOANAPPLY = "LOANAPPLY"; // OTO贷款申请

	public static final String DALIST_TYPE_BZJDATA = "BZJDATA"; // 管理打款凭证.JPG

	public static final String DALIST_TYPE_ZXBGDATA = "ZXBGDATA"; // 征信报告

	public static final String DALIST_TYPE_ZXMATE = "POZXBGDATA"; // 配偶征信报告

	public static final String DALIST_TYPE_REFUNDCONTRACTBAK = "REFUNDCONTRACTBAK"; // 借款合同与借据

	public static final String DALIST_TYPE_BANKAPPLYDATA = "BANKAPPLYDATA"; // 银行送审申报附件资料

	public static final String BOC_FTPTYPE_REPAYHIS = "REPAYHIS";// 还款历史

	public static final String BOC_FTPTYPE_RPPLANLOOP = "RPPLAN_LOOP_DAY";// 剩余还款计划循环信息

	public static final String BOC_FTPTYPE_RPPLANSTATIC = "RPPLAN_STATIC_DAY";// 剩余还款计划静态信息

	public static final String DALIST_TYPE_SPONSOR_IDRC = "SPONSOR_IDRC";// 担保人手持授权书及身份证照片

	public static final String DALIST_TYPE_SPONSOR_CRD = "SPONSOR_CRD";// 担保人征信业务授权书

	public static final String DALIST_TYPE_SPONSOR_IDC = "SPONSOR_IDC";// 担保人身份证

	public static final String DALIST_TYPE_SPONSOR_ZXBG = "SPONSOR_ZXBG";// 担保人征信报告

	// public static final String BOC_FTPTYPE_LOANINFO = "LOANINFO";//FTP放款信息

	public static String getDatalistName(String datalistCode) {
		String datalistName = "未知附件";
		if (StringUtil.isNotBlank(datalistCode)) {
			if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_IDC)) {
				datalistName = "借款人身份证附件";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_IDRC)) {
				datalistName = "借款人手持授权书及身份证照片";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_CRD)) {
				datalistName = "征信业务授权书";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_MATE_IDC)) {
				datalistName = "配偶借款人身份证附件";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_MATE_IDRC)) {
				datalistName = "配偶借款人手持授权书及身份证照片";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_MATE_CRD)) {
				datalistName = "配偶征信业务授权书";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_LOANAPPLY)) {
				datalistName = "OTO贷款申请";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_BZJDATA)) {
				datalistName = "管理打款凭证";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_ZXBGDATA)) {
				datalistName = "借款人征信报告";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_ZXMATE)) {
				datalistName = "配偶征信报告";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_SPONSOR_ZXBG)) {
				datalistName = "担保人征信报告";
			} else if (datalistCode.equals(FileTypeConstants.DALIST_TYPE_REFUNDCONTRACTBAK)) {
				datalistName = "借款合同与借据";
			} else {
				datalistName = "其它";
			}
		}
		return datalistName;
	}
}
